home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Freeware 2002 November
/
SGI Freeware 2002 November - Disc 2.iso
/
dist
/
fw_glimpse.idb
/
usr
/
freeware
/
src
/
glimpse-3.0
/
libtemplate
/
template
/
Makefile.sunos.z
/
Makefile.sunos
Wrap
Makefile
|
1997-09-09
|
2KB
|
87 lines
#
# Makefile for the SOIF template processing code
#
# Darren Hardy, hardy@cs.colorado.edu, May 1994
#
# $Id: Makefile.in,v 1.17 1994/11/02 05:27:11 hardy Exp $
#
prefix = /usr/local/harvest
INSTALL_BINDIR = $(prefix)/bin
INSTALL_LIBDIR = $(prefix)/lib
INSTALL_MANDIR = $(prefix)/man
SHELL = /bin/sh
CC = gcc
INSTALL = cp #install -c
INSTALL_BIN = ${INSTALL}
INSTALL_FILE = ${INSTALL} #-m 644
RANLIB = ranlib
XTRA_LIBS = -lresolv -lm
LN_S = ln -s
DEBUG = $(DEBUG_TOP) #-O #-g #-DDEBUG
DEBUG_LIBS =
CFLAGS = $(DEBUG) -I../include
OBJS = template.o
LIBDIR = ../lib
LDFLAGS = -L$(LIBDIR)
LIBS = -ltemplate -lutil $(DEBUG_LIBS) $(XTRA_LIBS)
LIBFILE = libtemplate.a
BINS = cksoif print-template print-attr \
lsm2soif iafa2soif pcindex2soif translate-urls
all: $(LIBFILE) install-lib #$(BINS) mktemplate
$(LIBFILE): $(OBJS)
ar r $@ $(OBJS)
$(RANLIB) $@
clean:
-rm -f core $(OBJS) $(LIBFILE) $(BINS) *.o
#realclean:
# -rm -f Makefile mktemplate
install: install-lib
@for f in $(BINS) mktemplate; do \
echo $(INSTALL_BIN) $$f $(INSTALL_BINDIR); \
$(INSTALL_BIN) $$f $(INSTALL_BINDIR); \
done
-rm -f $(INSTALL_BINDIR)/LSM.unnest
$(LN_S) $(INSTALL_BINDIR)/lsm2soif $(INSTALL_BINDIR)/LSM.unnest
install-lib: $(LIBDIR)/$(LIBFILE)
$(LIBDIR)/$(LIBFILE): $(LIBFILE)
$(INSTALL_FILE) $(LIBFILE) $(LIBDIR)/$(LIBFILE)
$(RANLIB) $(LIBDIR)/$(LIBFILE)
cksoif: cksoif.o
$(CC) -o $@ $@.o $(LDFLAGS) $(LIBS)
print-template: print-template.o
$(CC) -o $@ $@.o $(LDFLAGS) $(LIBS)
print-attr: print-attr.o
$(CC) -o $@ $@.o $(LDFLAGS) $(LIBS)
template2html: template2html.o
$(CC) -o $@ $@.o $(LDFLAGS) $(LIBS)
translate-urls: translate-urls.o
$(CC) -o $@ $@.o $(LDFLAGS) $(LIBS)
lsm2soif: lsm2soif.o
$(CC) -o $@ $@.o $(LDFLAGS) -lurl $(LIBS) -lgdbm -lmd5 $(XTRA_LIBS)
iafa2soif: iafa2soif.o
$(CC) -o $@ $@.o $(LDFLAGS) -lurl $(LIBS) -lgdbm -lmd5 $(XTRA_LIBS)
print-urlrefs: print-urlrefs.o
$(CC) -o $@ $@.o $(LDFLAGS) -lurl $(LIBS) -lgdbm -lmd5 $(XTRA_LIBS)
pcindex2soif: pcindex2soif.o
$(CC) -o $@ $@.o $(LDFLAGS) -lurl $(LIBS) -lgdbm -lmd5 $(XTRA_LIBS)